﻿using UnityEngine;
using System.Collections;

public class WallLayerBehaviour : MonoBehaviour 
{
	void Update () 
	{
		GetComponent<SpriteRenderer>().sortingOrder = System.Convert.ToInt32(transform.position.y * 2);
	}
}
